package com.lw.config;

/**
 * 游戏状态：： 0未开始，1游戏中，2暂停，3失败，4通关
 */
public enum GameState {
    NOT_STARTED(0, "未开始"),
    IN_PROGRESS(1, "游戏中"),
    PAUSED(2, "暂停"),
    FAILED(3, "失败"),
    COMPLETED(4, "通关"),
    RESET(5, "重启"),
    NEXT_LEVEL(6, "下一关");

    private final int code;
    private final String description;

    GameState(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
